package com.association.logging.controller;

import com.association.logging.model.Log;
import com.association.logging.service.LogService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.len.JsonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api")
public class LogController {
    @Autowired
    LogService logService;

    @ApiOperation(value = "显示日志")
    @PostMapping("/LogList")
    public ResponseEntity logList(@RequestBody Log log){
        return new ResponseEntity(logService.logList(log), HttpStatus.OK);
    }
}
